#pragma once
#include "Tile.h"
#include <vector>
#include <string>

class TiXmlElement;

class Layer
{
public:
	Layer();
	~Layer();

	void Render(int levWidth, int levHeight, int tileWidth, int tileHeight);

	void SetTile(const Tile& tile, int locX, int locY);

	void SetName(const std::string& name);

	void SetParalax(float paralax);

	void SetVisibility(bool vis);

	void InitializeTiles(int levWidth, int levHeight);

	void LoadTileSet(Animation* sprite, int levWidth, int levHeight);

	void CheckCollisions(int levWidth, int levHeight, int tileWidth, int tileHeight, GameObject* collision);

private:
	float fParalax;

	std::vector<std::vector<Tile>> vecTiles;

	bool bVisibility;

	std::string strName;
};

